Exemple #1
0
        public TreeAppearance(AppearanceType tree = null, MCGameObject obj = null) : base(tree, obj)
        {
            appearType = (VFXAppearanceType)tree;

            currentTexture  = null;
            currentFrame    = -1;
            currentRotation = 0;

            currentShapeTypeId = ActorStates.STATE_NORMAL;
        }
Exemple #2
0
        public GVAppearance(AppearanceType tree = null, MCGameObject obj = null) : base(tree, obj)
        {
            appearType = (GVAppearanceType)tree;

            currentTexture  = null;
            currentFrame    = -1;
            currentRotation = 0;

            currentShapeTypeId = GVActorStates.STATE_STOPPED;
        }
Exemple #3
0
 private void InitObjectInfo(MCGameObject obj, MapObjFile.MCObj objData, ObjectType objtype, GameObject go)
 {
     obj.partId            = objData.ObjId;
     obj.appearanceId      = objtype.AppearanceName;
     obj.block             = objData.Block;
     obj.vertex            = objData.Vertex;
     obj.OffsetPixelX      = objData.pixelOffsetX;
     obj.OffsetPixelY      = objData.pixelOffsetY;
     obj.position          = terrain.MapPositionToWorldCoords(obj.block, obj.vertex, obj.OffsetPixelX, obj.OffsetPixelY);
     go.name               = string.Format("Obj-{0} [OBJ={1} SPR={2}]", obj.Name, obj.partId, obj.appearanceId);
     go.transform.position = obj.position;
 }
Exemple #4
0
 public Appearance(AppearanceType tree = null, MCGameObject obj = null)
 {
     type = tree;
 }
Exemple #5
0
 public ObjectAppearance(AppearanceType tree = null, MCGameObject obj = null) : base(tree, obj)
 {
 }