public static EnergyTank CreateEnergyTank(RoomKey roomKey, EnergyTankTemplate template) { EnergyTank newEnergyTank = new EnergyTank(); newEnergyTank.m_room_key = new RoomKey(roomKey); newEnergyTank.m_energy_tank_id = -1; // energy tank ID not set until this gets saved into the DB newEnergyTank.m_position = new Point3d(template.Position); newEnergyTank.m_energy = template.Energy; newEnergyTank.m_faction = GameConstants.eFaction.neutral; return(newEnergyTank); }
public static EnergyTank CreateEnergyTank(RoomKey roomKey, EnergyTankTemplate template) { EnergyTank newEnergyTank = new EnergyTank(); newEnergyTank.m_room_key = new RoomKey(roomKey); newEnergyTank.m_energy_tank_id = -1; // energy tank ID not set until this gets saved into the DB newEnergyTank.m_position = new Point3d(template.Position); newEnergyTank.m_energy = template.Energy; newEnergyTank.m_faction = GameConstants.eFaction.neutral; return newEnergyTank; }