public NebulaObject(IBaseWorld iWorld, string id, byte type, Dictionary <byte, object> inTags, float size, int subZone, params Type[] components) { Id = id; Type = type; world = iWorld; tags = inTags; this.size = size; this.subZone = subZone; if (tags == null) { tags = new Dictionary <byte, object>(); } behaviours = new BehaviourCollection(); transform = AddComponent <NebulaTransform>(); properties = AddComponent <NebulaObjectProperties>(); properties.SetProperty((byte)PS.Invisibility, invisible); //properties.SetProperty((byte)PS.SubZoneID, subZone); properties.SetProperty((byte)PS.Badge, string.Empty); if (components != null && components.Length > 0) { foreach (var component in components) { AddComponent(component); } } }
public NebulaObject(IBaseWorld iWorld, string id, byte type, Dictionary <byte, object> inTags, float size, int subZone, BehaviourCollection behaviours) { Id = id; Type = type; world = iWorld; tags = inTags; this.size = size; this.subZone = subZone; if (tags == null) { tags = new Dictionary <byte, object>(); } this.behaviours = behaviours; transform = GetComponent <NebulaTransform>(); properties = GetComponent <NebulaObjectProperties>(); properties.SetProperty((byte)PS.Invisibility, invisible); UpdateNebulaObject(); }
public NebulaObject(IBaseWorld iWorld, Dictionary <byte, object> inTags, float size, int subZone, params Type[] components) : this(iWorld, Guid.NewGuid().ToString(), inTags, size, subZone, components) { }
public NebulaObject(IBaseWorld iWorld, string id, Dictionary <byte, object> inTags, float size, int subZone, params Type[] components) : this(iWorld, id, (byte)ItemType.Avatar, inTags, size, subZone, components) { }
public TestNebulaObject(IBaseWorld world, Dictionary <byte, object> tags, float size, int subZone, params Type[] components) : base(world, tags, size, subZone, components) { }