public static EntityEquipableVisual.VisualPart ReadVisualPart(this NetworkReader reader) { GameObject model = (GameObject)PinouApp.Resources.Data.Databases.GetItem(DatabaseType.ItemModel, reader.ReadInt32()); EntityBodySocket socket = (EntityBodySocket)reader.ReadInt32(); return(new EntityEquipableVisual.VisualPart(model, socket)); }
public Transform GetSocket(EntityBodySocket socket) { switch (socket) { case EntityBodySocket.Shell: return(shellSocket); case EntityBodySocket.Weapon: return(weaponSocket); case EntityBodySocket.Aura: return(auraSocket); case EntityBodySocket.Reactor: return(reactorSocket); } throw new System.Exception("No Socket " + socket + " found."); }
public VisualPart(GameObject model, EntityBodySocket socket) { _model = model; _socket = socket; }