public StoreObjectFunctionHandler_s MakeSerializable() { StoreObjectFunctionHandler_s newHandler = new StoreObjectFunctionHandler_s(); if (HasBudtenderCounterFunction()) { newHandler.SetBudtenderCounter(GetBudtenderCounterFunction().MakeSerializable()); } if (HasCheckoutCounterFunction()) { newHandler.SetCheckoutCounter(GetCheckoutCounterFunction().MakeSerializable()); } if (HasDecorationFunction()) { newHandler.SetDecoration(GetDecorationFunction().MakeSerializable()); } if (HasDisplayShelfFunction()) { newHandler.SetDisplayShelf(GetDisplayShelfFunction().MakeSerializable()); } if (HasDoorwayFunction()) { newHandler.SetDoorway(GetDoorwayFunction().MakeSerializable()); } return(newHandler); }
public StoreObject_s(int ID, int subID_, int uniqueID_, int subGridIndex_, Vector2 gridIndex, Vector3 pos, Vector3 eulers, StoreObjectFunctionHandler_s functionHandler_) { posX = pos.x; posY = pos.y; posZ = pos.z; rotX = eulers.x; rotY = eulers.y; rotZ = eulers.z; objectID = ID; subID = subID_; uniqueID = uniqueID_; subGridIndex = subGridIndex_; gridIndexX = (int)gridIndex.x; gridIndexY = (int)gridIndex.y; functionHandler = functionHandler_; }
public StoreObject_s MakeSerializable() { StoreObjectFunctionHandler_s handler_s = functionHandler.MakeSerializable(); return(new StoreObject_s(objectID, subID, uniqueID, grid.subGridIndex, gridIndex, transform.position, transform.eulerAngles, handler_s)); }