Add chat
This commit is contained in:
@ -27,6 +27,7 @@ type Player struct {
|
||||
CurrentTick int64
|
||||
LastUpdateTime time.Time
|
||||
InterpolationProgress float32
|
||||
UserData interface{} // Used to store reference to game
|
||||
}
|
||||
|
||||
type ModelAsset struct {
|
||||
@ -34,6 +35,12 @@ type ModelAsset struct {
|
||||
Texture rl.Texture2D
|
||||
}
|
||||
|
||||
type ChatMessage struct {
|
||||
PlayerID int32
|
||||
Content string
|
||||
Time time.Time
|
||||
}
|
||||
|
||||
const (
|
||||
MapWidth = 50
|
||||
MapHeight = 50
|
||||
|
Reference in New Issue
Block a user