private void LoadFile(Vector3 position, MyObjectBuilder_VoxelMap objectBuilder) { m_storage = new MyProxyStorage(objectBuilder.MutableStorage, MyStorageBase.Load(objectBuilder.Name)); InitVoxelMap(position); }
public void Init(MyStorageBase storage, bool isStorageMutable) { Flags |= EntityFlags.NeedsUpdate10; SyncFlag = true; base.Init(null); m_storage = new MyProxyStorage(isStorageMutable, storage); InitVoxelMap(Vector3.Zero); NeedsUpdate |= MyEntityUpdateEnum.BEFORE_NEXT_FRAME; }