public PlayerAI(float3 pos, float3 rot, ulong code, EntityHandler_Server handler) { this.Construct(); this.SetPosition(pos, rot); this.Install(EntityHitbox.PLAYER); this.SetHandler(handler); this.playerCode = code; }
public DroppedItemAI(float3 pos, float3 rot, float3 move, ulong code, ushort itemCode, byte amount, ulong playerCode, EntityHandler_Server handler, ChunkLoader_Server cl) { this.Construct(); this.SetPosition(pos, rot); this.Install(EntityHitbox.ITEM); this.SetChunkloader(cl); this.SetHandler(handler); this.entityCode = code; this.CREATED_BY_PLAYER = true; this.playerCode = playerCode; this.its = new ItemStack((ItemID)itemCode, amount); this.Install(new ProjectileTerrainVision(cl)); this.Install(new ItemBehaviour(pos, rot, move)); }
protected void SetHandler(EntityHandler_Server handler) { this.entityHandler = handler; }