Let's say I have this class, with this struct declared inside:
Now I have another class, which does NOT inherit from the above class. Inside this class, I would like to declare a variable of type 'PlayerStat', which is the struct found in the myReplicationInfo class. For example:
Can I do this? If so, what is the syntax? (because the above doesn't work of course).
Thanks.
Code:
class myReplicationInfo expands ReplicationInfo;
struct PlayerStat
{
var string Player;
var int Score;
};
Now I have another class, which does NOT inherit from the above class. Inside this class, I would like to declare a variable of type 'PlayerStat', which is the struct found in the myReplicationInfo class. For example:
Code:
class myServerInfo expands ServerInfo;
function Dummy()
{
local PlayerStat ps;
}
Can I do this? If so, what is the syntax? (because the above doesn't work of course).
Thanks.