public MyMwcObjectBuilder_Player(float health, float money, float withoutOxygen, MyMwcObjectBuilder_PlayerStatistics playerStatisticsObjectBuilder, MyMwcObjectBuilder_SmallShip shipObjectBuilder, MyMwcObjectBuilder_ShipConfig shipConfigObjectBuilder) { Health = health; Money = money; WithoutOxygen = withoutOxygen; PlayerStatisticsObjectBuilder = playerStatisticsObjectBuilder; ShipObjectBuilder = shipObjectBuilder; ShipConfigObjectBuilder = shipConfigObjectBuilder; }
public MyMwcObjectBuilder_Player(float health, float money, float withoutOxygen, MyMwcObjectBuilder_PlayerStatistics playerStatisticsObjectBuilder, MyMwcObjectBuilder_SmallShip shipObjectBuilder, MyMwcObjectBuilder_ShipConfig shipConfigObjectBuilder) { Health = health; Money = money; WithoutOxygen = withoutOxygen; PlayerStatisticsObjectBuilder = playerStatisticsObjectBuilder; ShipObjectBuilder = shipObjectBuilder; ShipConfigObjectBuilder = shipConfigObjectBuilder; }
public void Init(MyMwcObjectBuilder_PlayerStatistics playerStatisticsObjectBuilder) { Debug.Assert(playerStatisticsObjectBuilder != null); BulletsShot = playerStatisticsObjectBuilder.BulletsShot; FriendlyFire = playerStatisticsObjectBuilder.FriendlyFire; GamePlayTime = playerStatisticsObjectBuilder.GamePlayTime; HarvestedOre = playerStatisticsObjectBuilder.HarvestedOre; OxygenSpent = playerStatisticsObjectBuilder.OxygenSpent; PlayersKilled = playerStatisticsObjectBuilder.PlayersKilled; RescuedPlayers = playerStatisticsObjectBuilder.RescuedPlayers; TraveledDistance = playerStatisticsObjectBuilder.TraveledDistance; TunnelsDug = playerStatisticsObjectBuilder.TunnelsDug; Deaths = playerStatisticsObjectBuilder.Deaths; }
public bool Read(MyMessageReader msg) { StatsBuilder = MyMwcObjectBuilder_Base.ReadAndCreateNewObject(msg.Reader, msg.EndPoint) as MyMwcObjectBuilder_PlayerStatistics; return StatsBuilder != null && StatsBuilder.Read(msg.Reader, msg.EndPoint, MyMwcFinalBuildConstants.SERVER_PROTOCOL_VERSION); }