Exemplo n.º 1
0
 public override void Unpack(StreamUnpacker su)
 {
     SaveLoadTransform.UnpackTransform(gameObject.transform, su);
     showgold        = su.ReadBool();
     gold            = su.ReadFloat();
     showwildflowers = su.ReadBool();
     wildflowers     = su.ReadInt();
     broadcastjumps  = su.ReadBool();
 }
Exemplo n.º 2
0
 public void Unpack(StreamUnpacker sp)
 {
     objectName = sp.ReadString();
     method     = sp.ReadString();
     paramaters = sp.ReadStrings();
     assignment = sp.ReadBool();
 }
Exemplo n.º 3
0
    private static Quest UnpackQuest(StreamUnpacker su)
    {
        Quest q = new Quest();

        q.name              = su.ReadString();
        q.uniqueId          = su.ReadInt();
        q.description       = su.ReadString();
        q.handinDescription = su.ReadString();
        q.afterDescription  = su.ReadString();
        q.questevent        = su.ReadString();
        q.activeevent       = su.ReadString();
        q.playerCommands    = (Command[])su.ReadObjects(typeof(Command));

        q.questrequirement = su.ReadString();
        q.open             = su.ReadBool();
        q.completed        = su.ReadBool();
        q.status           = su.ReadString();
        q.lastEffected     = Time.time + su.ReadFloat();

        int n = su.ReadInt();

        for (int t = 0; t < n; t++)
        {
            Objective o = new Objective();
            q.objectives.Add(o);
            o.description      = su.ReadString();
            o.doneDescription  = su.ReadString();
            o.locationObject   = su.ReadString();
            o.count            = su.ReadInt();
            o.optional         = su.ReadBool();
            o.objectiveevent   = su.ReadString();
            o.questevent       = su.ReadString();
            o.activeevent      = su.ReadString();
            o.playerCommands   = (Command[])su.ReadObjects(typeof(Command));
            o.questrequirement = su.ReadString();
            o.completed        = su.ReadBool();
            o.open             = su.ReadBool();
        }
        return(q);
    }
Exemplo n.º 4
0
    override public void Unpack(StreamUnpacker su)
    {
        int cnum = su.ReadInt();

        conversations = new Conversation[cnum];
        for (int t = 0; t < cnum; t++)
        {
            Conversation c = new Conversation();
            conversations[t]           = c;
            c.id                       = su.ReadInt();
            c.returnId                 = su.ReadInt();
            c.uniqueId                 = su.ReadInt();
            c.text                     = su.ReadString();
            c.repeattext               = su.ReadString();
            c.once                     = su.ReadBool();
            c.fallthrough              = su.ReadBool();
            c.questevent               = su.ReadString();
            c.playerCommands           = (Command[])su.ReadObjects(typeof(Command));
            c.questrequirement         = su.ReadString();
            c.environmentalrequirement = su.ReadString();
            c._available               = su.ReadBool();
            c._seen                    = su.ReadBool();

            int onum = su.ReadInt();
            c.options = new Option[onum];

            for (int u = 0; u < onum; u++)
            {
                Option o = new Option();
                c.options[u]    = o;
                o.text          = su.ReadString();
                o.destinationId = su.ReadInt();
                o._available    = su.ReadBool();
                o.choosenb4     = su.ReadBool();
                o.quest         = su.ReadBool();
            }
        }

        UpdateQuestIcon(true);
    }
Exemplo n.º 5
0
 override public void Unpack(StreamUnpacker sp)
 {
     gameObject.SetActive(sp.ReadBool());
     bridge.rigidbody.useGravity = !gameObject.activeSelf;
 }
Exemplo n.º 6
0
 override public void Unpack(StreamUnpacker sp)
 {
     gameObject.SetActive(sp.ReadBool());
 }
Exemplo n.º 7
0
 public void Unpack(StreamUnpacker sp)
 {
     objectName=sp.ReadString();
     method=sp.ReadString();
     paramaters=sp.ReadStrings();
     assignment=sp.ReadBool();
 }
Exemplo n.º 8
0
    private static Quest UnpackQuest(StreamUnpacker su)
    {
        Quest q=new Quest();
        q.name=su.ReadString();
        q.uniqueId=su.ReadInt();
        q.description=su.ReadString();
        q.handinDescription=su.ReadString();
        q.afterDescription=su.ReadString();
        q.questevent=su.ReadString();
        q.activeevent=su.ReadString();
        q.playerCommands=(Command[])su.ReadObjects(typeof(Command));

        q.questrequirement=su.ReadString();
        q.open=su.ReadBool();
        q.completed=su.ReadBool();
        q.status=su.ReadString();
        q.lastEffected=Time.time+su.ReadFloat();

        int n=su.ReadInt();
        for (int t=0;t<n;t++){
            Objective o=new Objective();
            q.objectives.Add(o);
            o.description=su.ReadString();
            o.doneDescription=su.ReadString();
            o.locationObject=su.ReadString();
            o.count=su.ReadInt();
            o.optional=su.ReadBool();
            o.objectiveevent=su.ReadString();
            o.questevent=su.ReadString();
            o.activeevent=su.ReadString();
            o.playerCommands=(Command[])su.ReadObjects(typeof(Command));
            o.questrequirement=su.ReadString();
            o.completed=su.ReadBool();
            o.open=su.ReadBool();
        }
        return q;
    }
Exemplo n.º 9
0
 public override void Unpack(StreamUnpacker sp)
 {
     gameObject.SetActive(sp.ReadBool());
 }
Exemplo n.º 10
0
    public override void Unpack(StreamUnpacker su)
    {
        int cnum=su.ReadInt();
        conversations=new Conversation[cnum];
        for (int t=0;t<cnum;t++){
            Conversation c=new Conversation();
            conversations[t]=c;
            c.id=su.ReadInt();
            c.returnId=su.ReadInt();
            c.uniqueId=su.ReadInt();
            c.text=su.ReadString();
            c.repeattext=su.ReadString();
            c.once=su.ReadBool();
            c.fallthrough=su.ReadBool();
            c.questevent=su.ReadString();
            c.playerCommands=(Command[])su.ReadObjects(typeof(Command));
            c.questrequirement=su.ReadString();
            c.environmentalrequirement=su.ReadString();
            c._available=su.ReadBool();
            c._seen=su.ReadBool();

            int onum=su.ReadInt();
            c.options=new Option[onum];

            for (int u=0;u<onum;u++){
                Option o=new Option();
                c.options[u]=o;
                o.text=su.ReadString();
                o.destinationId=su.ReadInt();
                o._available=su.ReadBool();
                o.choosenb4=su.ReadBool();
                o.quest=su.ReadBool();
            }
        }

        UpdateQuestIcon(true);
    }