public Item(Game gameInstance) { Frozen = DateTime.Now; this.gameInstance = gameInstance; if (gameInstance != null) { this.SpriteModel = new SpriteModel(gameInstance, 4); UpdateSpriteTexture(); this.IdleAnimation = true; } }
public Player(NetConnection netConn, Game gameInstance) { this.gameInstance = gameInstance; this.NetConn = netConn; this.ID = Player.GetUniqueId(); if (netConn != null) this.IP = netConn.RemoteEndpoint.Address.ToString(); if (gameInstance != null) { this.SpriteModel = new SpriteModel(gameInstance, 4); UpdateSpriteTexture(); this.IdleAnimation = true; } }
public Player(NetConnection netConn, Game gameInstance) { this.gameInstance = gameInstance; this.NetConn = netConn; this.ID = Player.GetUniqueId(); if (netConn != null) { this.IP = netConn.RemoteEndPoint.Address.ToString(); } if (gameInstance != null) { this.SpriteModel = new SpriteModel(gameInstance, 4); UpdateSpriteTexture(); this.IdleAnimation = true; } }
public Item(Game gameInstance, ItemType iType) { Content = new int[20]; Frozen = DateTime.Now; Type = iType; this.gameInstance = gameInstance; if (gameInstance != null) { this.SpriteModel = new SpriteModel(gameInstance, 4); UpdateSpriteTexture(); this.IdleAnimation = true; } else { Content[5] = 1; } }